#include "problems/1017.h"
#include "gtest/gtest.h"

TEST(TestProblemSolutions, TestProblem1017)
{
    problem_1017::Solution s;
    ASSERT_EQ(s.gcdOfStrings("ABCABC", "ABC"), "ABC");
    ASSERT_EQ(s.gcdOfStrings("ABABAB", "AB"), "AB");
    ASSERT_EQ(s.gcdOfStrings("ABABAB", "B"), "");
    ASSERT_EQ(s.gcdOfStrings("ABABAB", "A"), "");
    ASSERT_EQ(s.gcdOfStrings("LEET", "CODE"), "");
    ASSERT_EQ(s.gcdOfStrings("LEET", "E"), "");
}